import 'package:flutter_bilibili/http/adapter/hi_net_adapter.dart';
import 'package:flutter_bilibili/http/request/base_request.dart';

class MockAdapter extends HiNetAdaptor {
  @override
  Future<HiNetResponse> send<T>(BaseRequest request) {
    return Future<HiNetResponse>.delayed(
      const Duration(milliseconds: 1000),
      () {
        return HiNetResponse(
          data: {'code': 0, 'message': 'success'},
          statusCode: 200,
          request: request,
          statusMessage: '请求成功！',
        );
      },
    );
  }
}
